﻿#include <QApplication>
#include <QWidget>


#pragma comment(linker,"/subSystem:Windows /entry:mainCRTStartup")
/*
存在黑窗口	——		console
没有黑窗口	——		Windows

*/


#include "SSqlconnectionPool.h"
#include "Server.h"



int main(int argc, char* argv[])
{
	QApplication a(argc, argv);

	SSqlconnectionPool::instance()->setPort(3306);
	SSqlconnectionPool::instance()->setHostname("localhost");
	SSqlconnectionPool::instance()->setDatabasename("user_permissions_manager_system");
	SSqlconnectionPool::instance()->setUsername("root");
	SSqlconnectionPool::instance()->setPassword("6666");

	Server server;
	server.show();



	return a.exec();
}

